package com.aacar.dao.impl;

import com.aacar.dao.SeqDao;
import com.aacar.dao.base.CommonBaseDao;
import com.aacar.entity.SeqNo;
import org.springframework.stereotype.Repository;

@Repository("seqNoDao")
public class SeqDaoImpl extends CommonBaseDao<SeqNo, String> implements SeqDao {

	private static final String nameSpace = "com.aacar.dao.SeqDao.";



	@Override
	public String getSeqNo(String seqClass) {
		SeqNo param = new SeqNo();
		param.setSeqClass(seqClass);
		return this.getSqlSession().selectOne(nameSpace.concat("getSeqNo"), param);
	}

	@Override
	public int update(SeqNo seqNo) {
		return this.getSqlSession().update(nameSpace.concat("update"), seqNo);
	}
}
